﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_AddNew : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request["id"] != null && Request["id"].ToString() != "-1")
        {
            Maticsoft.News news = new Maticsoft.News();
            news.GetModel(Convert.ToInt32(Request["id"]));
            content.Value = news.NCONTENT;
            newTitle.Value = news.NTITLE;
            newType.Value = news.NTYPE.ToString();
            newId.Value = news.ID.ToString();
        }
        else
        {
            newId.Value = "";
        }
    }
}